#include <stdio.h>

#include "../include/BlockOperations.h"

int get_free_block()
{
	int freeListBlockPosition = FREE_LIST_START + sizeof(int)*(fileSysInfo.freeBlock);
	int freeBlock, freeBlockPosition;
	
	FILE *fp = fopen(fileSysInfo.fileSystemLabel, "rb");
	fseek(fp, freeListBlockPosition, SEEK_SET);
	fread(&freeBlock, sizeof(int), 1, fp);
	return freeBlock;
}

int add_free_block(int block)
{
	
	return 1;
}


